__version__ = "1.1.0"
import os

from ruamel.yaml import YAML


def demo_config():
    """
    加载全局配置文件
    :return:
    """
    os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
    with open("config/config.yaml", "r") as smallfile:

        #shp_2024_11_25 修改 safe_load版本高无法拿去config
        #config = safe_load(smallfile)  # pprint(config)
        yaml = YAML(typ='safe', pure=True)
        config = yaml.load(smallfile)  # pprint(config)

    return config
